From λ-calculus to Universal Algebra and Back
نویسندگان
چکیده
We generalize to universal algebra concepts originating from λ-calculus and programming to prove a new result on the lattice λT of λ-theories, and a general theorem of pure universal algebra which can be seen as a meta version of the Stone Representation Theorem. In this paper we introduce the class of Church algebras (which includes all Boolean algebras, combinatory algebras, rings with unit and the term algebras of all λ-theories) to model the “if-then-else” instruction of programming. The interest of Church algebras is that each has a Boolean algebra of central elements, which play the role of the idempotent elements in rings. Central elements are the key tool to represent any Church algebra as a weak Boolean product of indecomposable Church algebras and to prove the meta representation theorem mentioned above. We generalize the notion of easy λ-term of lambda calculus to prove that any Church algebra with an “easy set” of cardinality n admits (at the top) a lattice interval of congruences isomorphic to the free Boolean algebra with n generators. This theorem has the following consequence for the lattice of λ-theories: for every recursively enumerable λ-theory φ and each n, there is a λ-theory φn ⊇ φ such that {ψ : ψ ⊇ φn} “is” the Boolean lattice with 2 elements.
منابع مشابه
From lambda-Calculus to Universal Algebra and Back
We generalize to universal algebra concepts originating from lambda calculus and programming in order first to prove a new result on the lattice of λ-theories, and second a general theorem of pure universal algebra which can be seen as a meta version of the Stone Representation Theorem. The interest of a systematic study of the lattice λT of λ-theories grows out of several open problems on lamb...
متن کاملApplying Universal Algebra to Lambda Calculus
The aim of this paper is double. From one side we survey the knowledge we have acquired these last ten years about the lattice of all λ-theories (= equational extensions of untyped λ-calculus) and the models of lambda calculus via universal algebra. This includes positive or negative answers to several questions raised in these years as well as several independent results, the state of the art ...
متن کاملThe lambda-calculus is nominal alge- braic
In this paper we will write -[a 7→ -] as shorthand for (λa.-)-. Thus g[a 7→ h] stands for (λa.g)h and not for the term resulting from ‘substituting h for a in g’ (we write that as g[h/a], see Definition 44). The λ-calculus represents functions in programming languages [Pau96, Tho96], logic [Bar77, Lei94], theorem-provers [ABI96, Pau89], higher-order rewriting [BN98], and much more besides. Howe...
متن کاملConfluence via strong normalisation in an algebraic lambda-calculus with rewriting
The linear-algebraic λ -calculus and the algebraic λ -calculus are untyped λ -calculi extended with arbitrary linear combinations of terms. The former presents the axioms of linear algebra in the form of a rewrite system, while the latter uses equalities. When given by rewrites, algebraic λ -calculi are not confluent unless further restrictions are added. We provide a type system for the linear...
متن کاملA universal realizability model for sequential functional computation
We construct a universal and even logically fully abstract realizability model for the sequential functional programming language of call-by-name FPC. This model is defined within the category of modest sets over the total combinatory algebra L of observational equivalence classes of closed terms of the untyped programming language λ+Error. This language is untyped lazy call-by-name lambda-calc...
متن کامل